<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML {$html_attrs}><HEAD><TITLE>Relatório Planejamento Regional</TITLE>
<link REL="stylesheet" href="include/style.css" type="text/css"><!--[if IE]><link REL="stylesheet" href="include/styleIE.css" type="text/css"><![endif]-->{BEGIN style_block}<style>
#toplinks_caption{$id} {padding:0px 30px;font-size:12px;font-weight:bold;}
#mastertable_block{$id} {margin-left:50px;margin-top:10px}
#toplinks_block{$id} {width:100%;padding:3px;padding-left:30px}
#toplinks_block{$id} span {padding-left:5px;}
#search_records_block{$id} { padding-left:5px;}
#search_records_block{$id} > * {vertical-align:middle;}
#search_records_block{$id} select {margin:3px 0px;}
#login_block{$id} {padding:10px; margin-bottom:3px}
#login_block{$id} * {margin-left:5px; padding:5px 0px;}
#menu_block{$id} {padding:10px;}
#menu_block{$id} * {list-style-type:none;}
#menu_block{$id} IMG {vertical-align:middle;}
#record_controls{$id} {padding:10px 10px;text-align: left;}
#record_controls{$id} span{padding-left:10px;}
#recordcontrolsadd_block{$id} {padding:10px 10px;border: solid; border-width: 1px; border-color: #C0C0C0;text-align: right;}
#grid_block{$id} {border:solid 1px #C0C0C0;}
.listIcons img.listIcon{margin:0 3px;opacity:0.3;filter:alpha(opacity=30);}
.grid_recordheader{$id} {padding:0 5px 5px;vertical-align:top;}
.grid_recordheader{$id} a {margin:0px 5px;}
body {margin:0px;padding:0px;}
.bottomPanelBorder{
	/*margin-right: 10px;*/
	padding-bottom: 18px;
	border-left: 1px solid #C0C0C0;
	border-right: 1px solid #C0C0C0;
	border-bottom: 1px solid #C0C0C0;
}
#searchform{$id}{float: left;}
#searchPanelContainer{$id}{
	width: 200px;
	float: left;
	position:absolute;
}
.searchOptions {margin-top: -10px;}
/*report styles*/
table.report {border-collapse: collapse} 
table.report td {padding: 2px;border-width: 1px; border-style: solid; border-color: #cccccc;}
div.page_block{clear:left;}
td.group_1{background-color: DFF8FF;}
td.group_2{background-color: C0C0C0;}
td.group_3{background-color: FFFFE0;}
td.nbgroup_1{background-color: DFF8FF;border-style:none;}
td.nbgroup_2{background-color: C0C0C0;border-style:none;}
td.nbgroup_3{background-color: FFFFE0;border-style:none;}
td.header_1{background-color: BDD2D8;}
td.header_2{background-color: A3A3A3;}
td.header_3{background-color: D8D8BE;}
td.pagesummary{background-color:#ffffbb;}
td.globalsummary{background-color:#ffe0b0;}
#export_links{$id} * {padding:0}
</style>
{END style_block}
<META content="MSHTML 6.00.6000.17080" name=GENERATOR></HEAD>
<BODY {$bodyattrs} marginwidth="0" marginheight="0">{BEGIN body}<DIV id="height100{$id}">{$header} 
{BEGIN toplinks_block}<DIV id="toplinks_block{$id}">&nbsp;<FONT 
size=+0><B>Relatório&nbsp;Planejamento&nbsp;Regional</B></FONT> {BEGIN print_link}<SPAN><A href="rel_planejamento_regional_print.php" 
target=_blank {$printpictlink_attrs}><A 
href="rel_planejamento_regional_print.php" target=_blank {$printlink_attrs}></A></SPAN>{END print_link}{BEGIN printall_link}<SPAN><A href="rel_planejamento_regional_print.php?all=1" 
target=_blank {$printallpictlink_attrs}><A 
href="rel_planejamento_regional_print.php?all=1" target=_blank 
{$printalllink_attrs}><img src="botoes/printer.png" border="0"> 
</A></SPAN>{END printall_link}{BEGIN export_link}<SPAN id="export_links{$id}"><A 
href="rel_planejamento_regional_print.php?all=1&amp;format=excel" 
{$excellink_attrs}><IMG alt="Expot to Excel" src="images/excel.gif" 
border=0></A> <A 
href="rel_planejamento_regional_print.php?all=1&amp;format=word" 
{$wordlink_attrs}><IMG alt="Export to Word" src="images/word.gif" border=0></A></SPAN>{END export_link}</DIV>{END toplinks_block}
{BEGIN search_records_block}<div id="recordcontrolsadd_block{$id}" class="shade3"><span id="search_records_block{$id}" class="shade3">{BEGIN searchform}<!-- Search panel header for horizontal layouts --><SPAN id="searchform{$id}" align="absmiddle"><SPAN id="searchPanelHeader{$id}">{$simpleSearchFieldCombo} 
{$simpleSearchTypeCombo} 
{BEGIN searchform_text}<INPUT size=25 {$searchfor_attrs}>{END searchform_text} &nbsp; {BEGIN searchform_search}<SPAN class=buttonborder><input class="button" type="button" style="width: 30px; height:30px; background-image: url(images/search/search.gif);" {$searchbutton_attrs} ></SPAN>{END searchform_search} 
&nbsp; {BEGIN searchform_showall}<SPAN class=buttonborder id="showall{$id}"><INPUT class=button type=button value="Mostrar Todos" {$showallbutton_attrs}></SPAN>{END searchform_showall} 
</SPAN>{BEGIN searchPanelTopButtons}<SPAN>&nbsp; <SPAN class=buttonborder><INPUT class=button id="showSrchWin{$id}" style="BACKGROUND-IMAGE: url(images/search/showWindowPin.gif); WIDTH: 18px" type=button {$showHideSearchWin_attrs}></SPAN> 
&nbsp; <SPAN class=buttonborder><INPUT class=button id="showOptPanel{$id}" style="BACKGROUND-IMAGE: url(images/search/showOptions.gif); WIDTH: 18px" type=button {$showHideSearchPanel_attrs}></SPAN> 
</SPAN>{END searchPanelTopButtons}</SPAN>{END searchform}{BEGIN details_block}<SPAN id="detFound{$id}">Ítens Encontrados: <B>{$records_found}</B>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>{END details_block} 
{BEGIN pages_block}<SPAN id="pageOf{$id}">Página <B>{$page}</B> 
de <B>{$maxpages}</B></SPAN>{END pages_block} 
&nbsp;&nbsp;&nbsp;&nbsp; {BEGIN recordspp_block}<SPAN class=center_block>Grupos por página:&nbsp; <SELECT 
onchange="javascript: document.location='rel_planejamento_regional_report.php?pagesize='+this.options[this.selectedIndex].value;"><option value="1" {$rpp1_selected}>1</OPTION> <option value="3" {$rpp3_selected}>3</OPTION> <option value="5" {$rpp5_selected}>5</OPTION> <option value="10" {$rpp10_selected}>10</OPTION> <option value="50" {$rpp500_selected}>50</OPTION> <option value="100" {$rpp100_selected}>100</OPTION> <option value="-1" {$rpp_all_selected}>Mostrar Todos</OPTION></SELECT> </SPAN>{END recordspp_block}</span></div>{END search_records_block}<!-- search panel and window -->
<DIV class=searchPanelContainer id="searchPanelContainer{$id}">{$adv_search_panel} 
</DIV>
<DIV {$marginStyle} moveForSearch="move{$id}">{BEGIN recordcontrols_block}<DIV id="record_controls{$id}">{BEGIN record_controls}{END record_controls}</DIV>{END recordcontrols_block}
<DIV class=message id="usermessage{$id}">{$user_message}</DIV>
<TABLE class=report style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid" cellSpacing=0 cellPadding=1 width="100%" border=0>{BEGIN grid_row}<!-------------------------------------  group headers ----------------------------------------->
  {BEGIN id_regional_newgroup}<TR><TD class=header_1 colSpan=13>Regional:&nbsp; <FONT 
      style="FONT-WEIGHT: 900">{$id_regional_grval}</FONT></TD></TR>{END id_regional_newgroup}
  {BEGIN mes_newgroup}<TR><TD class=group_1>&nbsp;</TD>
    <TD class=header_2 colSpan=12>Mes:&nbsp; <FONT 
      style="FONT-WEIGHT: 900">{$mes_grval}</FONT></TD></TR>{END mes_newgroup}{BEGIN id_uc_newgroup}<TR><TD class=group_1>&nbsp;</TD>
    <TD class=group_2>&nbsp;</TD>
    <TD class=header_3 colSpan=11>UC:&nbsp; <FONT 
      style="FONT-WEIGHT: 900">{$id_uc_grval}</FONT></TD></TR>
  <TR><TD class=group_1>&nbsp;</TD>
    <TD class=group_2>&nbsp;</TD>
    <TD class=group_3>&nbsp;</TD>
    <TD class=blackshade>Natureza da Despesa</TD>
    <TD class=blackshade>Codigo</TD>
    <TD class=blackshade>Custo Programado</TD>
    <TD class=blackshade>Detalhe Pedido</TD>
    <TD class=blackshade>Status Uc</TD>
    <TD class=blackshade>Status Regional</TD>
    <TD class=blackshade>Status Sede</TD>
    <TD class=blackshade>Obs Uc</TD>
    <TD class=blackshade>Obs Reg</TD>
    <TD class=blackshade>Obs Sede</TD></TR>{END id_uc_newgroup}<!-------------------------------------  data ----------------------------------------->
  {BEGIN row_data}<TR><TD class=group_1>&nbsp;</TD>
    <TD class=group_2>&nbsp;</TD>
    <TD class=group_3>&nbsp;</TD>
    <TD class=data>{$descricao_value}</TD>
    <TD class=data>{$cod_classificacao_value}</TD>
    <TD class=data>{$custo_programado_value}</TD>
    <TD class=data>{$detalhe_pedido_value}</TD>
    <TD class=data>{$status_progr_uc_value}</TD>
    <TD class=data>{$status_progr_reg_value}</TD>
    <TD class=data>{$status_progr_sede_value}</TD>
    <TD class=data>{$obs_uc_value}</TD>
    <TD class=data>{$obs_reg_value}</TD>
    <TD class=data>{$obs_sede_value}</TD></TR>{END row_data}<!-------------------------------------  group summary ----------------------------------------->{BEGIN id_uc_endgroup}<TR><TD class=group_1></TD>
    <TD class=group_2></TD>
    <TD class=group_3 colSpan=11>Resumo para UC {$id_uc_grval} - {$groupid_uc_total_cnt} Total de registros 
      <DIV></DIV></TD></TR><!--  Sum -->
  <TR><TD class=group_1>&nbsp;</TD>
    <TD class=group_2>&nbsp;</TD>
    <td class=group_3 style="border-left: solid black 1px;">Soma</td>
    <TD class=group_3>&nbsp;</TD>
    <TD class=group_3>&nbsp;</TD>
    <TD class=group_3>{$groupid_uc_totalcusto_programado_sum}</TD><TD class=group_3>&nbsp;</TD>
    <TD class=group_3>&nbsp;</TD>
    <TD class=group_3>&nbsp;</TD>
    <TD class=group_3>&nbsp;</TD>
    <TD class=group_3>&nbsp;</TD>
    <TD class=group_3>&nbsp;</TD>
    <TD class=group_3>&nbsp;</TD></TR>{END id_uc_endgroup}{BEGIN mes_endgroup}<TR><TD class=group_1></TD>
    <TD class=group_2 colSpan=12>Resumo para Mes {$mes_grval} - {$groupmes_total_cnt} Total de registros 
      <DIV></DIV></TD></TR><!--  Sum -->
  <TR><TD class=group_1>&nbsp;</TD>
    <td class=group_2 style="border-left: solid black 1px;">Soma</td>
    <TD class=group_2>&nbsp;</TD>
    <TD class=group_2>&nbsp;</TD>
    <TD class=group_2>&nbsp;</TD><TD class=group_2>{$groupmes_totalcusto_programado_sum}</TD>
    <TD class=group_2>&nbsp;</TD>
    <TD class=group_2>&nbsp;</TD>
    <TD class=group_2>&nbsp;</TD>
    <TD class=group_2>&nbsp;</TD>
    <TD class=group_2>&nbsp;</TD>
    <TD class=group_2>&nbsp;</TD>
    <TD class=group_2>&nbsp;</TD></TR>{END mes_endgroup}{BEGIN id_regional_endgroup}<TR><TD class=group_1 colSpan=13>Resumo para Regional {$id_regional_grval} - {$groupid_regional_total_cnt} Total de registros 
      <DIV></DIV></TD></TR><!--  Sum -->
  <TR><TD class=group_1 style="BORDER-LEFT: black 1px solid">Soma</TD>
    <TD class=group_1>&nbsp;</TD>
    <TD class=group_1>&nbsp;</td>
			<td class=group_1>{$groupid_regional_totalcusto_programado_sum}</td>
			<td class=group_1>{$groupid_regional_totalcusto_programado_sum}</td>
			<td class=group_1>{$groupid_regional_totalcusto_programado_sum}</TD>
    <TD class=group_1>&nbsp;</TD>
    <TD class=group_1>&nbsp;</TD>
    <TD class=group_1>&nbsp;</TD>
    <TD class=group_1>&nbsp;</TD>
    <TD class=group_1>&nbsp;</TD>
    <TD class=group_1>&nbsp;</TD>
    <TD 
class=group_1>&nbsp;</TD></TR>{END id_regional_endgroup}{END grid_row}</TABLE>
{BEGIN pagination_block}<DIV class=page_block>{$pagination} 
</DIV>{END pagination_block}</DIV>{$event legenda11}{$footer} </DIV>{END body}</BODY></HTML>